﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Com.Framework.Data;

namespace Com.Library.DB.User
{
	public class UserEntity : DataEntity
	{
		public int UserNo { get { return GetData2("n4UserNo", (int)0); } }
		public string UserID { get { return GetData2("strUserID", string.Empty); } }
		public string IsLocalUser { get { return GetData2("IsLocalUser", string.Empty); } }
		public string MD5PWD { get { return GetData2("strMD5PWD", string.Empty); } }
		public string UserName { get { return GetData2("strUserName", string.Empty); } }
		public string PersonalNo { get { return GetData2("strPersonalNo", string.Empty); } }
		public string Email { get { return GetData2("strEmail", string.Empty); } }
		public byte Question { get { return GetData2("n1Question", (byte)0); } }
		public string Answer { get { return GetData2("strAnswer", string.Empty); } }
		public string PostNo { get { return GetData2("strPostNo", string.Empty); } }
		public string Address1 { get { return GetData2("strAddress1", string.Empty); } }
		public string Address2 { get { return GetData2("strAddress2", string.Empty); } }
		public string HomePhone { get { return GetData2("strHomePhone", string.Empty); } }
		public string MobilePhone { get { return GetData2("strMobilePhone", string.Empty); } }
		public string Birthday { get { return GetData2("strBirthday", string.Empty); } }
		public string IsLunar { get { return GetData2("IsLunar", string.Empty); } }
		public string IsSMS { get { return GetData2("IsSMS", string.Empty); } }
		public string IsEmail { get { return GetData2("IsEmail", string.Empty); } }
		public byte JoinMotiveType { get { return GetData2("n1JoinMotiveType", (byte)0); } }
		public byte UserLevel { get { return GetData2("n1UserLevel", (byte)0); } }
		public byte GroupType { get { return GetData2("n1GroupType", (byte)0); } }
		public DateTime JoinDate { get { return GetData2("dtJoinDate", DateTime.MinValue); } }
		public DateTime ModifyDate { get { return GetData2("dtModifyDate", DateTime.MinValue); } }
		public DateTime LastLogin { get { return GetData2("dtLastLogin", DateTime.MinValue); } }
		public string LoginIP { get { return GetData2("strLoginIP", string.Empty); } }
		public byte IsRemoved { get { return GetData2("IsRemoved", (byte)0); } }
		public DateTime RemoveDate { get { return GetData2("dtRemoveDate", DateTime.MinValue); } }
		public byte CodeSex { get { return GetData2("CodeSex", (byte)1); } }
	}
}